package com.blackteachan.server.service.impl;

import com.blackteachan.server.dao.DemoDao;
import com.blackteachan.server.dao.SimplenessDao;
import com.blackteachan.server.model.User;
import com.blackteachan.server.service.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author blackteachan
 * @since 2020-08-04 16:10
 */
@Service
public class DemoServiceImpl extends SimplenessServiceImpl<User, Long> implements DemoService<User, Long> {

    @Resource(type = DemoDao.class)
    private SimplenessDao<User, Long> simplenessDao;

    @Override
    public SimplenessDao<User, Long> getDao() {
        return simplenessDao;
    }

    @Override
    public User get(Long id) {
        return super.get(id);
    }

    @Override
    public Integer save(User user) {
        return super.save(user);
    }

    @Override
    public Integer update(User user) {
        return super.update(user);
    }

    @Override
    public Integer delete(Long id) {
        return super.delete(id);
    }

    @Override
    public void print() {
        System.out.println("DemoServiceImpl - print()");
    }
}
